<%--
  出入库批次明细
  User: Ivan
  Date: 2019-04-22 15:03
--%>
<style type="text/css">
tr, th, td {
    text-align: center;
}
</style>

<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/PartTotal/outInLotStockDetail"
          method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="${SYS_QUERY_NAME}"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel"/>
            <g:hiddenField name="startTime" value="${startTime}"/>
            <g:hiddenField name="state" value="${state}"/>
            <g:hiddenField name="clazz" value="${clazz}"/>
            <g:hiddenField name="outQty" value="${outQty}"/>
            %{--<label>出入类别：</label>--}%
            %{--<g:select name="outInType" from="${outInTypeList}" data-width="130" data-toggle="selectpicker"--}%
                      %{--data-live-search="true" optionKey="OUT_IN_TYPE" optionValue="OUT_IN_TYPE" value="${outInType}"--}%
                      %{--noSelection="['': '-- All --']"/>&nbsp;--}%
            <label>产品图号：</label>
            <g:textField name="partTuId" value="${partTuId}" size="15" placeholder="产品图号"/>&nbsp;
            <label>物料编码：</label>
            <g:textField name="materielCode" value="${materielCode}" size="15" placeholder="物料编码"/>&nbsp;
            <label>存货代码/图号：</label>
            <g:textField name="stockCode" value="${stockCode}" size="20" placeholder="存货代码/图号"/>&nbsp;
            <label>批次：</label>
            <g:textField name="lotId" value="${lotId}" size="15" placeholder="批次"/>&nbsp;
            %{--<br /><br />--}%
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a type="button" class="btn btn-blue" href="${request.getContextPath()}/ExportExcel/expExcel"
               data-toggle="doexport" data-confirm-msg="确定要导出吗？" data-icon="file-excel-o" title="导出Excel">导出</a>
        </div>
    </form>
</div>

<div class="bjui-pageContent tableContent">
    <g:if test="${report_011.size() > 0}">
        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr>
                <th width="50">NO.</th>
                <g:each in="${tableHeadList}" status="i" var="headInstance">
                    <g:if test="${headInstance != 'RN'}">
                        <th><g:message code="${headInstance}" default="${headInstance}"/></th>
                    </g:if>
                </g:each>
            </tr>
            </thead>
            <tbody>
            <g:each in="${report_011}" status="i" var="dataInstance">
                <tr>
                    <td>${dataInstance.RN}</td>
                    <g:each in="${tableHeadList}" status="j" var="headInstance">
                        <g:if test="${headInstance != 'RN'}">
                            <td>
                                ${dataInstance["${headInstance}"]}
                            </td>
                        </g:if>
                    </g:each>
                </tr>
            </g:each>
            </tbody>
        </table>
    </g:if>
    <g:else>
        <g:render template="../template/emptyPanel"/>
    </g:else>
</div>
<g:render template="../template/pagination"/>